package com.example.my_music_palyer.mapper;

import com.example.my_music_palyer.model.Music;
import com.example.my_music_palyer.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
     User login(User user);

    User selectByUserName(String username);

    int registerUser(User user);
    
    int updateUserProfile(User user);
    
    int updateUserAvatar(@Param("userId") int userId, @Param("avatar") String avatar);

}
